// /models/Files.js

const { DataTypes } = require('sequelize');
const sequelize = require('../database');
const User = require('./User');

const Files = sequelize.define('Files', {
  filename: {
    type: DataTypes.STRING,
    allowNull: false,
  },
  path: {
    type: DataTypes.STRING,
    allowNull: false,
  },
  size: {
    type: DataTypes.INTEGER,
    allowNull: false,
  },
});

Files.belongsTo(User);

module.exports = Files;
